import requests
from bs4 import BeautifulSoup

# 目标URL
url = "https://www.baidu.com/"

# 发送GET请求
response = requests.get(url)

# 解析响应内容
soup = BeautifulSoup(response.text, 'html.parser')

# 打印解析后的数据
print(soup.prettify())